import React, { Component } from 'react'
import './index.css'
import Item from '../Item/Item'
export default function List({ todos }) {
    return (
        <ul className="todo-main">
            {todos.map(todo => (
                <Item  key={todo.id} todo={todo}/>

            ))}


        </ul>
    )
}
